<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>用户登录-KKR订餐管理系统</title>
<title>首页</title>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/reset.css">
<!--公共样式结束-->
<!--页面样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/login.css">
<!--页面样式结束-->
</head>

<body>
	<div class="box">
		<img src="{$NOW_THEME_URL}/Assets/Images/Deskbg/Food/01.jpg">
	</div>
	<div class="login_bg">
		<div class="login"></div>
		<div class="login_content">
			<div class="logo">
				<img src="{$NOW_THEME_URL}/Assets/Images/logo_login_b.png">
			</div>
			<form action="{:U('Public'/login)}" method="post" >
			<table width="0" border="0" cellspacing="0" cellpadding="0" class="login_form" align="center">
				<tr>
					<td class="ele_content">
						<input type="text" name="username" value="" class="form_ele_text" placeholder="请输入用户名"/>
					</td>
				</tr>
				<tr>
					<td class="ele_content">
						<input type="password" name="password" value="" class="form_ele_text" placeholder="请输入您的密码"/>
					</td>
				</tr>
				<tr>
					<td class="ele_content">
						<input type="text" name="yzm" class="form_ele_text w150" placeholder="请输入右侧验证码"/>
						<img id="yzmImg" src="{:U('Public/verify')}" title="验证码不区分大小写" class="yzm" 
						 onClick="$('#yzmImg').attr('src','{:U("Public/verify")}&'+Math.random(1));"/>
					</td>
				</tr>
				<tr>
					<td>
						<input class="login_btn" type="submit" value="登录"/>
					</td>
				</tr>
			</table>
			</form>
			<div class="loading">
				<img src="{$NOW_THEME_URL}/Assets/Images/loading.gif">
			</div>
		</div>
	</div>
<!--公共脚本开始-->
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.min.js"></script>
<!--公共脚本结束-->
<script type="text/javascript">
	function randomNum(n){
		return Math.floor(Math.random()*10+1);	
	}
	//早中晚切换背景
	//$('.box').html('<img src="{$NOW_THEME_URL}/Assets/Images/Deskbg/Scenery/'+randomNum(10)+'.jpg">');
	/*var myDate = new Date();
	var hour = myDate.getHours();
	//上午
	if(hour>=6 && hour<12){
		$('.box').html('<img src="{$NOW_THEME_URL}/Assets/Images/Deskbg/Colorfull/4.jpg">');
	//下午
	}else if(hour>=12 && hour<18){
		$('.box').html('<img src="{$NOW_THEME_URL}/Assets/Images/Deskbg/Colorfull/5.jpg">');
	//晚上
	}else if(hour>=18 && hour<22){
		$('.box').html('<img src="{$NOW_THEME_URL}/Assets/Images/Deskbg/Colorfull/1.jpg">');
	//深夜
	}else if(hour>=22 && hour<6){
		$('.box').html('<img src="{$NOW_THEME_URL}/Assets/Images/Deskbg/Colorfull/3.jpg">');
	}*/
</script>
</body>
</html>
